package Fachada;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JEditorPane;
import javax.swing.JTabbedPane;
import javax.swing.JScrollPane;
import java.awt.ScrollPane;
import javax.swing.JToggleButton;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;
import javax.swing.JMenuItem;
import javax.swing.JMenu;
import java.awt.List;
import java.awt.Choice;
import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JFormattedTextField;
import javax.swing.JRadioButton;

public class MontarFoto extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MontarFoto frame = new MontarFoto();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MontarFoto() {
		setTitle("PhotoFace");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 553, 474);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblMonteASua = new JLabel("Monte a sua foto");
		lblMonteASua.setFont(new Font("Tahoma", Font.BOLD, 18));
		lblMonteASua.setBounds(199, 312, 156, 14);
		contentPane.add(lblMonteASua);
		
		JButton btnProcurar = new JButton("Procurar Foto");
		btnProcurar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				JFileChooser fileChooser = new JFileChooser();
				fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
				
				int result = fileChooser.showOpenDialog(null);
				File fileName = fileChooser.getSelectedFile();
				
			}
		});
		btnProcurar.setBounds(216, 266, 127, 23);
		contentPane.add(btnProcurar);
		
		JFormattedTextField formattedTextField = new JFormattedTextField();
		formattedTextField.setBounds(113, 11, 302, 226);
		contentPane.add(formattedTextField);
		
		JLabel lblEfeitos = new JLabel("Efeitos");
		lblEfeitos.setFont(new Font("Traditional Arabic", Font.BOLD, 14));
		lblEfeitos.setBounds(129, 348, 46, 14);
		contentPane.add(lblEfeitos);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"...", "Cinza", "Sephia"}));
		comboBox.setBounds(109, 373, 96, 20);
		contentPane.add(comboBox);
		
		JLabel lblMoldura = new JLabel("Moldura");
		lblMoldura.setFont(new Font("Traditional Arabic", Font.BOLD, 14));
		lblMoldura.setBounds(282, 348, 61, 14);
		contentPane.add(lblMoldura);
		
		JComboBox comboBox_2 = new JComboBox();
		comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"...", "Madeira", "Vidro", "Espelhado"}));
		comboBox_2.setBounds(276, 373, 79, 20);
		contentPane.add(comboBox_2);
		
		JButton btnLimparEfeitos = new JButton("Limpar Efeitos");
		btnLimparEfeitos.setBounds(391, 372, 117, 23);
		contentPane.add(btnLimparEfeitos);
		
		JButton btnOk = new JButton("OK");
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				JOptionPane.showMessageDialog(null, "Visualizar Foto Pronta?");
				
				VisualizarFoto vf = new VisualizarFoto();
				vf.setVisible(true);
				
				
			}
		});
		btnOk.setBounds(58, 413, 91, 23);
		contentPane.add(btnOk);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			
				JOptionPane.showMessageDialog(null, "Cancelar Efeitos?");
				
			TelaInicial ti = new TelaInicial();
			ti.setVisible(true);
			
			
				
			}
		});
		btnCancelar.setBounds(230, 413, 91, 23);
		contentPane.add(btnCancelar);
		
		JButton btnExcluirFoto = new JButton("Excluir Foto");
		btnExcluirFoto.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				JOptionPane.showConfirmDialog(null, "Excluir Foto?");
				
			}
		});
		btnExcluirFoto.setBounds(384, 413, 117, 23);
		contentPane.add(btnExcluirFoto);
	}
}
